const markers = []
const lng = 117.22
const lat = 31.84
for (let i = 0; i < 100; i++) {
  const position = {lng: lng + Math.random()*Math.random(), lat: Math.random()*Math.random() + lat}
  markers.push(position)
}
for (let i = 100; i < 200; i++) {
  const position = {lng: lng - Math.random()*Math.random(), lat: lat-Math.random()*Math.random()}
  markers.push(position)
}

module.exports = [
  {
    url: '/gis/list',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          list:markers,
          total:markers.length
        }
      }
    }
  }
]
